<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name='viewport' content='width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'>
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>移动端首页practice01</title>
  <link rel="icon" href="./favicon.ico">
  <link rel="stylesheet" href="./lib/fa/css/font-awesome.css">
  <link rel="stylesheet" href="./lib/mui/css/mui.css">
  <link rel="stylesheet" href="./css/common.css">
  <link rel="stylesheet" href="./css/cart.css">
</head>

<body>
  <div class="lt_container">
    <div class="lt_header">
      <a class="icon_left mui-icon mui-icon-arrowleft" href="javascript:history.back();"></a>
      <span>购物车</span>
    </div>
    <div class="lt_main">
      <div class="mui-scroll-wrapper">
        <div class="mui-scroll">
          <!--这里放置真实显示的DOM内容-->
          <ul id="OA_task_2" class="mui-table-view">
            <!-- 待渲染 -->


          </ul>
        </div>
      </div>
    </div>
    <div class="lt_total">
      <div class="left mui-pull-left">
        <em>订单总金额</em>
        <span class="total">&yen;666.66</span>
      </div>
      <a href="javascript:;" class="right mui-pull-right">生成订单</a>
    </div>
    <div class="lt_footer">
      <ul>
        <li>
          <a href="index.html">
            <span class="fa fa-home"></span>
            <p>首页</p>
          </a>
        </li>
        <li>
          <a href="category.html">
            <span class="fa fa-home"></span>
            <p>分类</p>
          </a>
        </li>
        <li class="now">
          <a href="cart.html">
            <span class="fa fa-shopping-cart"></span>
            <p>购物车</p>
          </a>
        </li>
        <li>
          <a href="user.html">
            <span class="fa fa-user"></span>
            <p>会员中心</p>
          </a>
        </li>
      </ul>
    </div>
  </div>
 


  <script type="text/template" id="tmp">
   {{each list v i}}
   <li class="mui-table-view-cell">
      <div class="mui-slider-right mui-disabled">
        <a data-product-num={{v.productNum}} data-product-size={{v.productSize}} data-id={{v.id}} data-size={{v.size}} data-num={{v.num}} class="btn_edit mui-btn mui-btn-blue mui-icon mui-icon-compose"></a>
        <a data-id={{v.id}} class="btn_delete mui-btn mui-btn-red mui-icon mui-icon-trash"></a>
      </div>
      <div class="mui-slider-handle">
        <div class="mui-table-cell mui-clearfix">
          <input class="ck" data-num={{v.num}} data-price={{v.price}} type="checkbox">
          <div class="left">
            <img src="{{v.pic[0].picAddr}}" alt="">
          </div>
          <div class="right">
            <p class="proName mui-ellipsis-2">{{v.proName}}</p>
            <p>
              <span class="price">&yen;{{v.price}}</span>
              <span class="oldPrice">&yen;{{v.oldPrice}}</span>
              <span class="num">{{v.num}}双</span>
            </p>

            <div class="size">鞋码: {{v.size}}</div>

          </div>
        </div>
      </div>
    </li>
   {{/each}}
  </script>

  <script type="text/template" id="tmp2"> 
    <div class="lt_size item">
        <i>尺码: </i>
        <%
        var temp=productSize.split('-')
        for(var i = +temp[0]; i < temp[1]; i++){
          %>
        <span class="{{+size === i? 'now':'' }}">{{i}}</span>
        <% } %>
      </div>
      <div class="lt_num item">
        <i>数量</i>
        <div class="mui-numbox" data-numbox-step='1' data-numbox-min='1' data-numbox-max='{{productNum}}'>
            <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
            <input class="mui-numbox-input" type="number" value="{{num}}" />
            <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
        </div>
      </div>
  </script>
 
  
  <script src="./lib/zepto/zepto.min.js"></script>
  <script src="./lib/artTemplate/template-web.js"></script>
  <script src="./lib/mui/js/mui.js"></script>
  <script src="./js/common.js"></script>
  <script src="./js/cart.js"></script>
</body>

</html>